PDF Xpress for ActiveX - User Guide > How To > Modify PDF Document Content > Re-Order Pages |
Move a page from one location in a PDF document to another by calling the MovePage method.
VB Example |
Copy Code
|
---|---|
'This code demonstrates moving a page On Error GoTo error Dim pdfXpress1 As New PdfXpress pdfxpress1.Initialize Dim document As New PdfDocument document.SetParentControl pdfXpress1 Dim openOpts As New OpenOptions openOpts.FileName = "C:\pdfsample.pdf" document.OpenDocumentOptions openOpts document.MovePage 3, 0 . . . GoTo finish error: MsgBox Err.Description finish: Set document = Nothing pdfxpress1.Terminate Set pdfxpress1= Nothing |